//
//  Person.h
//  OC05-HomeWork!(周六)
//
//  Created by dllo on 16/7/8.
//  Copyright © 2016年 高雅馨. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Person : NSObject
@property (nonatomic, copy) NSString *name;
@property (nonatomic, assign) int age;
@property (nonatomic, copy) NSString *sex;

-(instancetype)initWithName:(NSString *)name  Age:(int)age Sex:(NSString *)sex;
+(instancetype)nurseWithName:(NSString *)name  Age:(int)age Sex:(NSString *)sex;
-(NSComparisonResult)sortByAge:(Person *)person;
-(NSComparisonResult)sortByName:(Person *)person;
-(NSComparisonResult)sortBySex:(Person *)person;
@end
